import request from '@/utils/request'
// 用户新增点赞
export function addLike(data) {
  return request({
    url: '/opusLike',
    method: 'post',
    data
  })
}
// 用户取消点赞
export function deleteLike(data) {
  return request({
    url: '/opusLike/' + data.likeId,
    method: 'delete'
  })
}
// 获取点赞列表
export function getList(params) {
  return request({
    url: '/opusLike/page',
    method: 'get',
    params
  })
}
